Skip to content

Switch to GH Actions #1607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 8, 2020
Merged

Switch to GH Actions #1607

merged 6 commits into from
May 8, 2020

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented May 7, 2020

Travis ARM is very unreliable :(

@nhooyr nhooyr requested a review from code-asher as a code owner May 7, 2020 03:22
@nhooyr nhooyr force-pushed the ci branch 5 times, most recently from a774de6 to 432f081 Compare May 7, 2020 04:17
@nhooyr nhooyr force-pushed the ci branch 19 times, most recently from 001309c to f528fb4 Compare May 8, 2020 03:12
@nhooyr nhooyr changed the title Make CI faster Switch to GH Actions May 8, 2020
@nhooyr nhooyr force-pushed the ci branch 3 times, most recently from 2dd076c to 630d418 Compare May 8, 2020 03:53
The architecture specific jobs pull it in and then build releases.

Much faster!
@nhooyr nhooyr force-pushed the ci branch 2 times, most recently from 2ea8a72 to 3800ae4 Compare May 8, 2020 04:36
Much better test now as well.
@nhooyr nhooyr merged commit 4590c3a into master May 8, 2020
@nhooyr nhooyr deleted the ci branch May 8, 2020 06:17
@nhooyr
Copy link
Contributor Author

nhooyr commented May 8, 2020

I merged for testing automating publishing then docker image/npm. The GitHub Actions API requires the workflow file be in master for the API to work properly.

Please still review @code-asher

@nhooyr
Copy link
Contributor Author

nhooyr commented May 8, 2020

Nvm I was wrong, got the API working not related to merge but still review @code-asher

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only having to build once is clutch.

It occurred to me we'll need to update CONTRIBUTING.md to build a static release since you can't run the non-static release with node the way we describe since there are no VS Code node modules in there.

- run: ./ci/steps/release-static.sh
env:
# Otherwise we get rate limited when fetching the ripgrep binary.
GITHUB_TOKEN: ${{ secrets.github_token }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set this for the other jobs as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only macOS for some reason needs it. The others never fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documented this.

as artifacts on Github Actions.
1. Create a new draft release with the built release packages.
1. Run some basic sanity tests on one of the released packages.
1. Publish.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should mention to include the VS Code version in the release notes, see #1501 (comment). Including a changelog is of course obvious but maybe we should mention that as well (which at some point we should probably start generating automatically).

Copy link
Contributor Author

@nhooyr nhooyr May 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You got it.

I'd be in favour of a manual changelog, commits can get verbose. I'd rather we summarize the big changes ourselves.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm

1. Run some basic sanity tests on one of the released packages.
1. Publish.
1. Download the built npm package and publish it.
1. Place the debian releases into `./release-packages` and then push the docker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is better or worse but my strat was to pull the versioned Docker image, tag it latest, then push it back up.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I see in your other PR the image is pushed after a release is created so I suppose we could also just push latest? Since at that point we'd have verified the release is good to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea will add.

@@ -68,15 +85,13 @@ This directory contains the container for CI.

## steps

This directory contains a few scripts used in CI. Just helps avoid clobbering .travis.yml.
This directory contains a few scripts used in CI.
Just helps avoid clobbering .travis.yml.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we don't have a .travis.yml anymore, maybe we can make this generic with CI configuration file(s) or something.


- [./steps/test.sh](./steps/test.sh)
- Runs `yarn ci` after ensuring VS Code is patched
- [./steps/release.sh](./steps/release.sh)
- Runs the full release process
- Generates the npm package at `./release`
- [./steps/static-release.sh](./steps/static-release.sh)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is release-static.sh now.

Comment on lines 68 to +70
- [./build/test-release.sh](./build/test-static-release.sh)
- Ensures code-server in the `./release-static` directory runs
- [./build/build-static-pkgs.sh](./build/build-static-pkgs.sh) (`yarn pkg`)
- Uses [nfpm](https://github.com/goreleaser/nfpm) to generate .deb and .rpm from a static release
- [./build/build-packages.sh](./build/build-static-pkgs.sh) (`yarn package`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The names on the left don't match the right. Looks like on the first one the right is correct and on the second the left is correct.

@nhooyr
Copy link
Contributor Author

nhooyr commented May 8, 2020

It occurred to me we'll need to update CONTRIBUTING.md to build a static release since you can't run the non-static release with node the way we describe since there are no VS Code node modules in there.

Fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants